#include<bits/stdc++.h>
using namespace std;

int x[110], y[110], z[110];

void add(int len)
{
	int jinwei = 0;
	for(int i = 0;i < len;i++)
	{
		z[i] = x[i]+y[i]+jinwei;
		jinwei = z[i]/10;
		z[i] %= 10;
	}
	int begin = len-1;
	if(jinwei)
		z[len] = 1, begin++;
	for(int i = begin;i >= 0;i--)
		cout<<z[i];
}

int main()
{
	string a, b;
	cin>>a>>b;
	reverse(a.begin(), a.end());
	reverse(b.begin(), b.end());
	for(int i = 0;i < a.size();i++)
		x[i] = a[i]-'0';
	for(int i = 0;i < b.size();i++)
		y[i] = b[i]-'0';
	add(max(a.size(), b.size()));
	return 0;
}

